package org.jdcenter.jndi.context.remote;

import javax.naming.NameParser;
import javax.naming.NamingException;

import org.jdcenter.jndi.context.ContextImpl;
import org.jdcenter.jndi.context.ProxyContext;
import org.jdcenter.jndi.context.RMIContext;
import org.jdcenter.jndi.context.StubContext;
import org.jdcenter.jndi.naming.JDSNameParser;

public abstract class RMIContextClient extends RMIContext{
	
	protected ProxyContext proxyContext = null;
	protected String ip = "127.0.0.1";
	protected int port = 1099;
	protected String url = "//127.0.0.1:1099/JDStream";

	protected RMIContextClient(String ip,int port){
		this.ip = ip;
		this.port = port;
		this.url = "//"+ip+":"+port+"/JDStream";
	}
	
	public void setProxyContext(ProxyContext proxyContext){
		this.proxyContext = proxyContext;
	}

}
